#!/bin/zsh

cd `dirname $0`
pwd

echo '发布到演示环境'


## TODO: 构建前端项目

rsync -avz --exclude='.DS_Store' server root@tsh2:/opt/docker/fastposter-pro-python/

ssh root@tsh2 'cd /opt/docker/fastposter-pro-python/ && docker-compose build && docker restart fastposter-pro-python && docker logs -f --tail=100 fastposter-pro-python'


